<template>
  <div class="house-item-v3-root">
    <div class="item-inner">
      <div class="cover">
        <img :src="itemData.image.url" alt="tupian">
      </div>
      <div class="infos">
        <div class="location">
          <img src="@/assets/image/home/location.png" alt="">
          <span>{{itemData.location}}</span>
        </div>
        <div class="name">{{ itemData.houseName }}</div>
        <div class="summary">{{ itemData.summaryText }}</div>
        <div class="price">
          <div class="new">￥{{ itemData.finalPrice }}</div>
          <div class="old">￥{{ itemData.productPrice }}</div>
          <div class="tip">{{itemData.priceTipBadge.text}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  itemData: {
    type: Object,
    required: true,
    default: ()=>({})
  }
})
</script>

<style lang="less" scoped>
// 当前组件根css类
.house-item-v3-root {
  width: 50%;
}
</style>